package com.liu.security.controller;


import com.liu.efk.domain.ResultVo;
import com.liu.security.service.PermissionService;
import com.liu.security.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by shi860715@126.com
 * Date 2021/8/13 9:46
 * Description
 */
@RestController
@CrossOrigin
public class RoleController {


    @Autowired
    RoleService roleService;

    @GetMapping("/system/role")
    public ResultVo getList(){
        return  ResultVo.success(roleService.list());
    }





}
